import pytest
import os
import sys

# bugfix [ModuleNotFoundError: No module named 'common']
_curPath = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(_curPath)
http_client = os.path.join(_curPath, "base_interface", 'baseinterface', 'http_client')
sys.path.append(http_client)
swagger_client = os.path.join(_curPath, "base_interface", 'baseinterface', 'http_client', 'swagger_client')
sys.path.append(swagger_client)

from common.client.demo_client_api import DemoClientApi
from common.config.read_config import G_CONFIG

DOME_TYPE_DEFAULT = "保密"
DOME_TYPE_MAN = "男"


@pytest.fixture(scope="session")
def demo_server():
    return DemoClientApi(host=G_CONFIG.get("host"), port=G_CONFIG.get("port"))
